<?php

require_once "../include/connectionHandlers/database/IDataTable.php";
require_once "../include/connectionHandlers/database/AbstractDataTable.php";

class ImageEvent extends AbstractDataTable{

	protected $primaryKey = "imageEvent_id";
	protected $tableName = "nic_imageEvent";

	public function getImageUrlsForEventId($eventId)
	{
		$imagesId = parent::select("event_id" ,$eventId);
		$image = new Image();
		foreach ($imagesId  as $value){
			$imagesUrlarray($valuearray("image_id")) = $image->selectFromPrimaryKey($valuearray("image_id"))array("image_url");
			
		}
		return $imagesUrl;
	}

}
?>